package com.five.core.exception;


import com.five.core.result.ResultEnum;

import java.io.Serializable;

/**
 * Created by shelei on 2024/10/18
 */
public class CustomerException extends RuntimeException implements Serializable {
//666
    //ltnb
    private String message;

    private ResultEnum resultEnum;

    public CustomerException(ResultEnum resultEnum){
        super(resultEnum.getMessage());
        this.resultEnum=resultEnum;
    }

    public CustomerException(String message){
        super(message);
        this.message=message;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public ResultEnum getResultEnum() {
        return resultEnum;
    }

    public void setResultEnum(ResultEnum resultEnum) {
        this.resultEnum = resultEnum;
    }
}
